<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>课程考试系统</title>
    <link href="./css/bootstrap.min.css" rel="stylesheet">
    <link href="./css/bootstrap-theme.css" rel="stylesheet">
    <link href="./css/font-awesome.css" rel="stylesheet">
    <link href="./css/main.css" rel="stylesheet">


</head>
<body class="login-body">
<div class="login-container container clearfix" id = "show">
    <form class="form-login" action="student!login.action">

        <h2>
            <a href="./index.html" class="fa fa-home"></a>
            课程考试系统 学生入口
        </h2>
        <div class="form-group">
            <input type="text" placeholder="学号" id="username" class="form-control" 
				name="students.studentNo" required="required">
            <i class="form-login-icon fa fa-user"></i>
        </div>
        <div class="form-group">
            <input type="password" placeholder="密码" id="password" class="form-control"
				name="students.password" required="required">
            <i class="form-login-icon fa fa-lock"></i>
        </div>
        <p style="color:#FF0000;display:none" id="tip">
            No account or wrong password.
        </p>
        <div class="tooltip bottom">
            <div class="tooltip-arrow">

            </div>
            <div class="tooltip-inner">

            </div>
        </div>
        <input class="btn btn-normal btn-login" type="submit" id="loginBtn" tabindex="4" value="登录">
        <hr class="login-hr">
        <p class="reg">
            教师登录？
            <a href="teacherlogin.html">教师入口</a>
            <br>
            管理员登录？
            <a href="adminlogin.html">管理员入口</a>
        </p>
    </form>
</div>

<script src="./js/jquery.min.js"></script>
<script src="./js/bootstrap.min.js"></script>
<script type="text/javascript">
window.onload = function(){
	$.post("student!logined.action",{},function(data){
		if ( data==0 ) {
			$("#tip").show();
		}
	});
}
</script>
</body>
</html>